<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/2/21
 * Time: 17:53
 */

namespace app\index\model;


use think\Model;

class Room extends Model
{
    protected $table = 'sn_room';

    protected function getSexAttr($value)
    {
        $status = [0 => '保密', 1 => '男', 2 => '女'];
        return $status[$value];
    }
    protected function getStatusAttr($value)
    {
        $status = [ 1 => '未直播', 2 => '直播中'];
        return $status[$value];
    }
}